home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dskut
/
split60g.zip
/
SPLTGPAT.BAT
< prev
Wrap
DOS Batch File
|
1994-02-26
|
2KB
|
77 lines
echo off
cls
echo.
echo Uses DEBUG.COM to patch SPLIT v6.0g from "CTL" to "¢T£" control extension.
echo.
if %1' == ' goto info
if exist %1.exe goto continue
:nofiles
echo One or more files are missing!
echo.
echo "DEBUG.COM" and "%1.exe" must be present on your system.
echo.
goto info
:continue
dir %1.exe
echo.
echo If "%1.exe" is not 22847 bytes long, you should quit NOW!!
echo.
echo Press "Ctrl-Break" key NOW if you wish to terminate this action.
echo (Any other key will allow the modification of "%1.exe"):
echo.
pause
echo e2480 >modsplit.scr
echo 9b 9c >>modsplit.scr
echo e5491 >>modsplit.scr
echo 1c f9 03 0a >>modsplit.scr
echo n%1.new >>modsplit.scr
echo w >>modsplit.scr
echo q >>modsplit.scr
if not exist modsplit.scr goto nofiles
ren %1.exe %1.xxe
debug %1.xxe < modsplit.scr
ren %1.xxe %1.exe
if not exist %1.new goto nofiles
:finish
del modsplit.scr
if not exist %1.exe goto nofiles
if exist %1.olx del %1.olx
ren %1.exe %1.olx
if exist %1.olx echo Original "%1.exe" was saved as "%1.olx"
if exist %1.new ren %1.new %1.exe
echo:
echo done.
goto end
:info
echo SPLIT.EXE now uses ".CTL" instead of ".¢T£" as the extension of
echo its control file. This was done due to problems some systems
echo and programs had with high-bit characters in filenames. SPLIT
echo versions back to v5.19 are compatible with the ".CTL" extension.
echo.
echo If the new ".CTL" extension conflicts with other files on your
echo system using that extension, you may patch SPLIT.EXE with this
echo batch file to return to ".¢T£" as the control file extension.
echo.
echo SYNTAX: %0 prog
echo.
echo "prog" = basename (no extension) of the SPLIT.EXE you are modifying.
echo.
echo Example: "%0 split" patches "split.exe" to make
echo control files with ".¢T£" instead of ".CTL" extension.
echo.
echo Caution: 1) Save your original copy of SPLIT.EXE.
echo ------- 2) This batch file works ONLY with SPLIT v6.0g!!!!
:end
echo.